﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace laba2.Entity
{
    public class PracticalTask : Task
    {
        private DateTime _deadline;
        public int PrincipleOfRatingId { get; set; }
        private PrincipleOfRatingByDate _principleOfRating;//= new PrincipleOfRatingByDate();

        public PracticalTask(int id, int passingRating, int maximumRating, string name, Course course, DateTime deadline) :
            base(id, passingRating, maximumRating, name, course)
        {
            _deadline = deadline;
            _principleOfRating = new PrincipleOfRatingByDate();
        }

        public PracticalTask(int passingRating, int maximumRating, string name, Course course, DateTime deadline)
            : base(passingRating, maximumRating, name, course)
        {
            _deadline = deadline;
            _principleOfRating = new PrincipleOfRatingByDate();
        }

      /* public PracticalTask(int passingRating, string name, int maximumRating, int courseId, DateTime deadline) : base(passingRating, name, maximumRating, courseId)
        {
            _deadline = deadline;
           _principleOfRating=new PrincipleOfRatingByDate();
        }
        */
        public PracticalTask()
        {
        }

        public DateTime Deadline
        {
            get { return _deadline; }
            set { _deadline = value; }
        }

        public PrincipleOfRatingByDate PrincipleOfRating
        {
            get { return _principleOfRating; }
            set { _principleOfRating = value; }
        }
    }
}
